<?php

Item::$search->query();


/**
 * @orm listener afterSave
 */
class Item {
	
	/**
	 * @orm text
	 */
	public $text;
	
	/**
	 * @orm longtext
	 */
	public $contents;
	
	/**
	 * @orm longtext
	 */
	public $active;	
	
	/**
	 * @orm search(text,contents) ItemSearch
	 */
	public static $search;

	public function afterSave( $property ) {
		self::$search->updateIndex( $this, $property );
	}
	
}


class ItemSearch extends DomArSearchIndex {
	
	
}



?>